package mest.dao.cxj;

import mest.Dto.cxj.WorkrouteWorkManytomanyDto;
import mest.entity.workroutework_manytomany;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WorkrouteWorkManytomanyDao {


    /**
     * 批量保存工艺及其工序的关系
     *
     * @param workrouteWorkManytomany
     * @return
     */
    Integer insertWorkRouteWork(@Param("workrouteWorkManytomany")
                                        List<workroutework_manytomany> workrouteWorkManytomany, @Param("theirDb") String theirDb);

    /*
     * 查询所有工艺及工序的信息
     * @return
     * @throws Exception
     */
    List<WorkrouteWorkManytomanyDto> selectWorkRouteAndWorkById(@Param("wrid") Integer wrid, @Param("workName") String workName, @Param("theirDb") String theirDb);


}